#ifndef WEBSOCKETCLIENT_H
#define WEBSOCKETCLIENT_H

#include <libwebsockets.h>
#include <string>

class WebSocketClient {
public:
    WebSocketClient(const std::string& address, int port);
    ~WebSocketClient();
    void run();

private:
    static int callback(struct lws *wsi, enum lws_callback_reasons reason,
                        void *user, void *in, size_t len);

    struct lws_context *context;
    struct lws *wsi;
    std::string address;
    int port;
};

#endif // WEBSOCKETCLIENT_H